import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:moose_app/ui/values/values.dart';

class ATHBackChooseItem extends StatefulWidget {
  @override
  _ATHBackChooseItemState createState() => _ATHBackChooseItemState();
}

class _ATHBackChooseItemState extends State<ATHBackChooseItem> {
  bool isChoose = false;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        ClipRRect(
            borderRadius: BorderRadius.all(Radius.circular(kSize16)),
            child: CachedNetworkImage(
              imageUrl:
                  "https://gitee.com/shizidada/moose-resource/raw/master/avatar/avatar-girl.jpeg",
              fit: BoxFit.fill,
            )),
        Row(
          children: [
            Checkbox(
                value: isChoose,
                activeColor: kColorPrimary,
                onChanged: (value) {
                  this.setState(() {
                    isChoose = value;
                  });
                }),
            Text(
              "摄影",
              style:
                  TextStyle(fontSize: kFontSize30, fontWeight: FontWeight.w500),
            ),
          ],
        )
      ],
    );
  }
}
